package cn.htu.javaSong.controller;


import cn.htu.javaSong.common.ResponseModel;
import cn.htu.javaSong.entity.Img;
import cn.htu.javaSong.service.IImgService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dakai
 * @since 2024-10-30
 */
@RestController
@RequestMapping("/img")
public class ImgController {
    @Resource
    private IImgService iImgService;

    @PostMapping("/add")
    public ResponseModel<Img> getPcGirlWallpaper() {
        return iImgService.getPcGirlWallpaper();
    }
}
